<{include file="header.html"}>
<style>
.menu_list
{
	border:1px solid #cccccc;
	padding-top:20px;
	padding-left:0px;
	padding-right:20px;
	border-radius:20px;
	float:left;
	clear:both;
	min-width:960px;
	max-width:1024px;
}

.menu_list li
{
	border:1px solid #cccccc;
	margin-left:20px;
	float:left;
	padding:10px;
	margin-bottom:20px;
	width:200px;
	height:200px;
}

.menu_list li div
{
	float:left;
	clear:both;
}
.menu_list li span
{
	clear:both;
	float:left;
}
.menu_list li span input
{
	width:150px;
}
.menu_list li span input[type=submit]
{
	width:100px;
}
.showcontrolpanel
{
	height:50px;
}
.showcontrolpanel input
{
	width:20px;
	display:inline;
}
</style>
<script src="js/jquery-1.5.2.min.js"  language="javascript" ></script>
<script language="javascript">
$(function(){
	$('.showcontrolpanel input[value=<{$show_setting}>]').attr('checked',true);
	$('.showcontrolpanel input').click(function(){
		document.location = '<{spUrl c=$controller a=setshowsetting}>&v='+$(this).val();
	});
});
</script>
<div style="float:left;">
<span><input type="button" class="submit" value="新增" onclick="document.location='<{spUrl c=$controller a=edit}>';return false;"/></span>
<span class="showcontrolpanel"><input type="checkbox" value="all"/>&nbsp;全部&nbsp;&nbsp;&nbsp;<input type="checkbox" value="Y"/>&nbsp;只显示&nbsp;&nbsp;&nbsp;<input type="checkbox" value="N"/>&nbsp;只不显示</span>
</div>
<ul class="menu_list">
	<{foreach item=datarow from=$data_list}>
	<li>
	<div style="width:100%;">
	<span style="float:right;font-weight:bold;"><{$datarow['item_index']}></span>
	<span><{$datarow['name_en']}></span>
	<span><{$datarow['name_cn']}></span>
	<span>&nbsp;</span>
	<span>排序:<{$datarow['order']}></span>
	<{if $datarow['active'] != 'Y'}>
	<span class="notshow">不在APP中显示</span>
	<{else}>
	<span>APP中显示</span>
	<{/if}>
	<span>视频大小：<{$datarow['file_size']}></span>
	<span style="font-weight:bold;font-size:18px;">

	<a href="<{spUrl c=$controller a=edit}>&uuid=<{$datarow['uuid']}>">更新</a>
	&nbsp;&nbsp;<a href="<{spUrl c=$controller a=delete}>&uuid=<{$datarow['uuid']}>" onclick="return confirm('确定删除?');">删除</a>
	</span>
	</div>
	</li>
	<{/foreach}>
</ul>
<{include file="footer.html"}>